using System;
using System.Collections;
using System.Collections.Generic;

using BVMB.DataLayer.Base;

namespace BVMB.DataLayer.BusinessObjects
{
    public partial class SanBay : BusinessBase<int>
    {
        #region Declarations

		private string _tenSanBay = String.Empty;
		
		
		private IList<ChuyenBay> _chuyenBays1 = new List<ChuyenBay>();
		private IList<ChuyenBay> _chuyenBays2 = new List<ChuyenBay>();
		private IList<Ctchuyenbay> _ctchuyenbays = new List<Ctchuyenbay>();
		
		#endregion

        #region Constructors

        public SanBay() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_tenSanBay);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string TenSanBay
        {
            get { return _tenSanBay; }
			set
			{
				OnTenSanBayChanging();
				_tenSanBay = value;
				OnTenSanBayChanged();
			}
        }
		partial void OnTenSanBayChanging();
		partial void OnTenSanBayChanged();
		
		public virtual IList<ChuyenBay> ChuyenBays1
        {
            get { return _chuyenBays1; }
            set
			{
				OnChuyenBays1Changing();
				_chuyenBays1 = value;
				OnChuyenBays1Changed();
			}
        }
		partial void OnChuyenBays1Changing();
		partial void OnChuyenBays1Changed();
		
		public virtual IList<ChuyenBay> ChuyenBays2
        {
            get { return _chuyenBays2; }
            set
			{
				OnChuyenBays2Changing();
				_chuyenBays2 = value;
				OnChuyenBays2Changed();
			}
        }
		partial void OnChuyenBays2Changing();
		partial void OnChuyenBays2Changed();
		
		public virtual IList<Ctchuyenbay> Ctchuyenbays
        {
            get { return _ctchuyenbays; }
            set
			{
				OnCtchuyenbaysChanging();
				_ctchuyenbays = value;
				OnCtchuyenbaysChanged();
			}
        }
		partial void OnCtchuyenbaysChanging();
		partial void OnCtchuyenbaysChanged();
		
        #endregion
    }
}
